<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<%@ taglib uri="http://www.springframework.org/tags/form" prefix="form" %>

<%@ include file="../general/header.jsp" %>
	<h3>Cambiar contrase&ntilde;a</h3>
	<div class="menuacciones">
		<a class="boton volver color" href="../user/EditProfile?id=${user.id}">Volver</a>
	</div>		
	<div class="featurebox_center">
		<div class="formContainer500">
			<form:form method="POST" class="form" action="${action}" commandName="updatePasswordForm">
				<div class="form-field">
					<label>Contrase&ntilde;a actual: </label>
					<form:input class="required valid" type="password" path="current" />
					<div class="error"><form:errors path="current" /></div>
					<div class="clear"></div>
				</div>

				<div class="form-field">
					<label>Nueva contrase&ntilde;a: </label>
					<form:input class="required valid" type="password" path="password" />
					<div class="error"><form:errors path="password" /></div>
					<div class="clear"></div>
				</div>
				
				<div class="form-field">
					<label>Confirma contrase&ntilde;a: </label>
					<form:input class="required valid" type="password" path="password2" />
					<div class="error"><form:errors path="password2" /></div>
					<div class="clear"></div>
				</div>
				
				<input class="boton" type="submit" value="Guardar" />
			</form:form>
		</div>
	</div>
<%@ include file="../general/footer.jsp" %>